package com.gaohe.mapper;

import com.gaohe.pojo.StadCard;
import com.gaohe.pojo.StadMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gaohe.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liu
 * @since 2025-04-12
 */
@Mapper
public interface StadMemberMapper extends BaseMapper<StadMember> {
    List<SysUser> getVipList(Long shopKeepId);
    List<StadMember> getMemberList(Long shopKeepId);
    List<StadMember> getMemberAndBuyCard(Long id);
    List<StadCard> getMemberAndCard(Long id);
    List<StadMember> getMemberAndRecord(Long id);
    List<SysUser> searchAllByName(@Param("id") Long id, @Param("name") String name);
}
